<style>
    .layuimini-main {
        padding: 100px;
        text-align: center;
    }

    .last-login-info {
        padding: 20px 0;
    }
</style>
<div class="layuimini-container layuimini-page-anim">
    <div class="layuimini-main"></div>
</div>

<script>
    layui.use([], function () {
        var $ = layui.$,
            http = layui.http;
        http.ajaxPost('/admin/Admin/getInfo', {}, function (data) {
            var nickname = (function (str) {
                return str.substring(0, 1).toUpperCase() + str.substring(1);
            })(data.nickname);
            $('.layuimini-main').html('<h1>' + nickname + '，欢迎上线！</h1><div class="last-login-info">上次登录：' + data.lastlogintime + '，IP：' + data.lastloginip + '，地点：' + data.lastloginlocation + '</div>');
        });
    });
</script>